package com.sicheng.metadata.gc.init;

import java.util.HashMap;

/**
 * @author zsc
 * @version 1.0
 * @date 2022/1/21 20:54
 */


public class 类初始化时机 {
    public static void main(String[] args) {
        System.out.println(ConstClass.HELLO_BINGO);
        HashMap<String, String> map = new HashMap<>();
        map.put("","");
    }
}

class ConstClass {
    static {
        System.out.println("ConstClass init!");
    }
    public static final String HELLO_BINGO = "Hello Bingo";
}
